import request from '@/utils/request';

export interface CommentsItem {
  _id: number;
  userID: string;
  content: string;
  forumID: string;
}

// 1. 获取标签
export function getComments(params = {}) {
  return request({
    url: '/comments',
    method: 'post',
    data: params
  });
}

export function addComments(data: any = {}) {
  return request({
    url: '/addComments',
    method: 'post',
    data
  });
}

export function deleteComments(params = {}) {
  return request({
    url: '/deleteComments',
    method: 'post',
    data: params
  });
}

export function updateComments(params = {}) {
  return request({
    url: '/updateComments',
    method: 'post',
    data: params
  });
}

export function uploadComments(params = {}) {
  return request({
    url: '/uploadComments',
    method: 'post',
    data: params
  });
}
